
<form action="<%=request.getAttribute("formAction")%>" method="post" class="movieform">
    <input name="action" type="hidden" value="confirm" />
    <div class="Mt">
    
        <div>
            <label>Member Username: </label>
            <input type="text" value=<%=(String) session.getAttribute("memberUsername")%> readonly="readonly" style="background:gray" />
        </div>
        <div>
            <label>Movie Name: </label>
            <input type="text" value=${targetMovieSection.movieName} readonly="readonly" style="background:gray" />
        </div>
        <div>
            <label>Single Ticket Price: </label>
            <input type="text" value=${targetMovieSection.price} readonly="readonly" style="background:gray" />
        </div>
        <div>
            <label>Start Time: </label>
            <input type="text" value=${targetMovieSection.startTimeString} readonly="readonly" style="background:gray" />
        </div>
        <div>
            <label>Duration </label>
            <input type="text" value=${targetMovieSection.duration} readonly="readonly" style="background:gray" />
        </div>
        <div>
            <label>House: </label>
            <input type="text" value=${targetMovieSection.houseId} readonly="readonly" style="background:gray" />
        </div>
        <div>
            <label>Number of Tickets: </label>
            <input type="text" value=<%=(String) session.getAttribute("numTickets")%> readonly="readonly" style="background:gray" />
        </div>
        <div>
            <label>Seat No: </label>
            <%
                        String[] arrSeats = (String[]) session.getAttribute("arrSeats");
                        String seats = "";
                        int i = 0;
                        for (String seatNo : arrSeats) {
                            if (i == 0) {
                                seats += seatNo;
                            } else {
                                seats += "," + seatNo;
                            }
                            i++;
                        }
            %>
            <input id="seatNo" type="text" value=<%=seats%> readonly="readonly" style="background:gray" />

        </div>
        <div>
            <label>Total Payment:</label>
            <input type="text" value=<%= session.getAttribute("totalPayment")%> readonly="readonly" style="background:gray" />
        </div>

        <div>
            <h2>After you have booked the seat(s), please finish the payment within 5 minutes.
                Otherwise, the booking will be canceled. 
            </h2>
        </div>

        <div class="button">
            <input type="submit" value="Book Seat(s)" />
            <input type="button" name="btnCancel" value="Cancel" onclick="javascript:window.location='index.do'" />
        </div>
    </div>
</form>
